<template>
  <div class="school">
      <h2>我是学校组件</h2>
      <hr/>
      <h4>学校名称:{{$store.state.school.name}}</h4>
      <h4>学校地址:{{$store.state.school.address}}</h4>
      <h4>学校年龄:{{$store.state.school.age}}</h4>
  </div>
</template>

<script>
    export default {
        name: 'School',
    }
</script>

<style scoped>
    .school{
        background-color: skyblue;
        padding: 10px;
    }
</style>